package com.github.llyb120.yaomq.client;

import lombok.Builder;
import lombok.SneakyThrows;

/**
 * @Author: Administrator
 * @Date: 2020/9/14 17:55
 */
@Builder
public class YaoMQClient {
    private String clientName = System.getenv("COMPUTERNAME");
    private String serverUrl = "";
    private int clientPort = 80;
    private String authToken = "";


    @SneakyThrows
    public void start(){
        new MyWebSocketClient("127.0.0.1:" + clientPort, serverUrl, clientName, authToken).connect();
    }
}
